package com.moneywelcome.orderassembly.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 申购记录表
 * </p>
 *
 * @author alice
 * @since 2022-01-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class InvestRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "invest_id", type = IdType.AUTO)
    private Integer investId;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 用户昵称
     */
    private String nickName;

    /**
     * 申购交易编号
     */
    private String investSerial;
    /**
     * 持仓id
     */
    private Long financialId;
    /**
     * 黄金id
     */
    private Integer goldId;
    /**
     * 黄金名
     */
    private String variety;
    /**
     * 购买时间
     */
    private String buyTime;
    /**
     * 完成时间
     */
    private String completeTime;
    /**
     * 购入费额
     */
    private Double buyCharge;

    /**
     * 购入份额
     */
    private Double buyShares;

    /**
     * 购入单价
     */
    private Double buyPrice;
    /**
     * 购入费率
     */
    private Double buyRate;
    /**
     * 管理费率
     */
    private Double manageRate;
    /**
     * 支付账号
     */
    private Long buyAccount;

    /**
     * 订单状态;0:未完成,1:已完成
     */
    private Integer buyRecordStatus;

    /**
     * 记录新增时间
     */
    private String rawAddTime;

    /**
     * 更新时间
     */
    private String rawUpdateTime;


}
